<?php if (count($this->entries)): ?>

<div class="list_wrapper">
<?php
    //counter
    $i=1;
?>
<?php foreach ($this->entries as $entry): ?>
<?php
        //generate url for detail page
        if($GLOBALS['TL_LANGUAGE'] != 'de')
        {
           $urlArray = explode('/',$entry['url']);
           $urlArray[0] = "".$urlArray[0]."_".$GLOBALS['TL_LANGUAGE']."";
           $detailurl = implode('/',$urlArray);
        }
        else
        {
            $detailurl = $entry['url'];
        }
?>
<div class="list_item <?php if ($i %3 == 0) echo "last"; ?>">
	<div class="list_image">
        <a href="<?php echo $detailurl; ?>">
           <? if($entry['data']['image']['raw']) : ?>
               <?php echo $entry['data']['image']['value']; ?>
           <? else: ?>
            <?php echo $this->generateImage(
                $this->getimage(
                    'tl_files/solana/sortenfinder/produktbilder/solana_logo.png',
                    80,
                    110,
                    'proportional'
                ),
            'Solana'
            );
            ?>
           <?php endif; ?>
        </a>
    </div>
	<div class="list_name">
        <a href="<?php echo $detailurl; ?>">
            <?php echo $entry['data']['name_de']['value']; ?>
        </a>
    </div>
</div>
<?php $i++; ?>
<?php endforeach; ?> 
<?php else: ?>


<?php endif; ?>
<?php  //print_r($GLOBALS['TL_LANGUAGE'] ); ?>
